import 'package:crawler/global/color.dart';
import 'package:flutter/material.dart';

class ScaffoldBar extends StatelessWidget {
  const ScaffoldBar({
    super.key,
    this.title,
    required this.child
  });

  // 标题
  final String? title;
  final Widget child;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: LWColor.themeColor,
        foregroundColor: LWColor.witheColor,
        title: Text(title ?? ''),
      ),
      body: child,
      backgroundColor: LWColor.themeColor,
    );
  }
}